/* ditu.module.css */
.container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.125rem; /* 18px in rem */
  color: #333;
  z-index: 1000;
}

.searchBox {
  position: absolute;
  top: 4rem; /* Adjusted to ensure no overlap with back button */
  left: 0.625rem; /* 10px in rem */
  z-index: 1000;
  display: flex;
  gap: 0.625rem; /* 10px in rem */
}

.searchBox input {
  padding: 0.5rem; /* 8px in rem */
  font-size: 0.875rem; /* 14px in rem */
  border: 0.0625rem solid #ccc; /* 1px in rem */
  border-radius: 0.25rem; /* 4px in rem */
}

.searchBox button {
  padding: 0.5rem 0.75rem; /* 8px 12px in rem */
  font-size: 0.875rem; /* 14px in rem */
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 0.25rem; /* 4px in rem */
  cursor: pointer;
}

.searchBox button:hover {
  background-color: #40a9ff;
}

.routeBox {
  position: absolute;
  top: 6.5rem; /* Adjusted to be below the searchBox with spacing */
  left: 0.625rem; /* 10px in rem */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.625rem; /* 10px in rem */
}

.routeBox input {
  padding: 0.5rem; /* 8px in rem */
  font-size: 0.875rem; /* 14px in rem */
  border: 0.0625rem solid #ccc; /* 1px in rem */
  border-radius: 0.25rem; /* 4px in rem */
}

.routeBox button {
  padding: 0.5rem 0.75rem; /* 8px 12px in rem */
  font-size: 0.875rem; /* 14px in rem */
  background-color: #52c41a;
  color: white;
  border: none;
  border-radius: 0.25rem; /* 4px in rem */
  cursor: pointer;
}

.routeBox button:hover {
  background-color: #73d13d;
}

.map {
  width: 100%;
  height: 100%;
}

.routePanel {
  position: absolute;
  max-height: 90%;
  top: 20%;
  left: 0;
  width: 25%;
  z-index: 1000;
  padding: 0.5rem; /* 10px in rem */
}
.panel {
  position: absolute;
  max-height: 90%;
  top: 20%;
  right: 0;
  width: 60%;
  z-index: 1000;
  padding: 10px;
}
/* 返回按钮样式 */
.backButton {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}


.backButton:hover {
    background: #f5f5f5;
}